package com.corgi.formatter;

import java.util.Optional;

/**
 * @title: DefaultFormatter
 * @description: 默认格式化实现
 * @author: dengmiao
 * @create: 2019-10-10 14:10
 **/
public class DefaultFormatter implements Formatter {

	@Override
	public String format(Object o) {
		return String.valueOf(Optional.ofNullable(o).orElse(""));
	}
}
